package demo1;

import demo1.Frames.*;
import demo1.Frames.MyFrame.MyFrame2;
import demo1.NiceDemo.LogIn;
import demo1.NiceDemo.mouse.Mice;
import demo1.NiceDemo.picture.PictureTest;

import javax.swing.*;

public class Test {
    public static void main9(String[] args) {
        SinLineTest sinLineTest = new SinLineTest("sin");
        OpenFrame(sinLineTest);
    }
    public static void main8(String[] args) {
        LogIn logIn = new LogIn("Arcaea");
        OpenFrame(logIn);
    }
    public static void main7(String[] args) {
        Mice mice = new Mice("Mouse");
        OpenFrame(mice);
    }
    public static void main(String[] args) {
        LogoTest logoTest = new LogoTest("Hollow Knight");
        logoTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        logoTest.setSize(400, 300);
        logoTest.setVisible(true);
    }
    public static void main5(String[] args) {
        PictureTest pictureTest = new PictureTest("Arcaea");
        pictureTest.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        pictureTest.setSize(400, 300);
        pictureTest.setVisible(true);
    }
    public static void main4(String[] args) {
        MyPanels mypanels = new MyPanels("Arcaea");
        mypanels.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        mypanels.setSize(400, 300);
        mypanels.setVisible(true);
    }

    public static void main3(String[] args) {
        Labels labels = new Labels("Arcaea");
        labels.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        labels.setSize(400, 300);
        labels.setVisible(true);
    }

    public static void main2(String[] args) {
        TrySet trySet = new TrySet("Arcaea");
        trySet.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        trySet.setSize(400, 300);
        trySet.setVisible(true);
    }

    public static void main1(String[] args) {
        //实例化MyFrame
        MyFrame2 myframe = new MyFrame2("Arcaea");

        //窗口关闭时退出程序
        myframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        //设置窗口大小
        myframe.setSize(400, 300);

        //显示窗口
        myframe.setVisible(true);
    }
    public static void OpenFrame(JFrame frame) {
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(400,300);
        frame.setVisible(true);
    }
}
